package DARCOShared.responses;



public class GetCardFromQRScanResponse implements ResponseBase, java.io.Serializable {
	private static final long serialVersionUID = 1L;
	
	public boolean authPerformed;
	public String cardSN;
	public String cardID;
	public String cardName;
	public String cardStats;
	public String cardSpecial;
	public int cardCategory;
	public int cardSubCategory;
	public byte[] cardPreview;
	public String categoryName;
	public int categoryID;
	public int categoryAllowSub;
	public String subCategoryName;
	public int subCategoryID;
	public int subCategoryAllowSub;
	public String owner;
	public byte[] ownerPubKey;
	public int authenticated;
	public String firstOwner;
	public String firstAuth;
	public String error;
	public boolean err;

	public GetCardFromQRScanResponse(){}
	
	public GetCardFromQRScanResponse(String error){
		this.err=true;
		this.error=error;
		this.authPerformed=false;
	}
	
	public GetCardFromQRScanResponse(boolean authPerf,String cardSN, String cardID, String cardName, String cardStats,String cardSpecial,
									int cardCategory, int cardSubCategory, byte[] cardPreview,
									String categoryName, int categoryID, int categoryAllowSub, String subCategoryName,
									int subCategoryID, int subCategoryAllowSub,int authenticated,
									String firstOwner,String firstAuth,String owner, byte[] ownerPubKey){
		this.err=false;
		this.authPerformed=authPerf;
		this.cardSN = cardSN;
		this.cardID = cardID;
		this.cardName = cardName;
		this.cardStats = cardStats;
		this.cardSpecial=cardSpecial;
		this.cardCategory = cardCategory;
		this.cardSubCategory = cardSubCategory;
		this.cardPreview = cardPreview;
		this.categoryName = categoryName;
		this.categoryID = categoryID;
		this.categoryAllowSub = categoryAllowSub;
		this.subCategoryName = subCategoryName;
		this.subCategoryID = subCategoryID;
		this.subCategoryAllowSub = subCategoryAllowSub;
		this.authenticated= authenticated;
		this.firstOwner= firstOwner;
		this.firstAuth= firstAuth;
		this.owner = owner;
		this.ownerPubKey = ownerPubKey;
	}
	
	@Override
	public ResponseType getResponseType() {
		return ResponseType.GetCardFromQRScan;
	}

}
